package day06;

public class demo {
    public static void main(String[] args) {
    say();
    say("哈哈哈");
    say("舞舞舞",18);
    }
    //有参无返回值
    public static void say(String name,int age){//------形参
        System.out.println("名字为:"+name+",年龄为:"+age);
    }

    //有参无返回值
    public static void say(String name){//-------形参
        System.out.println("大家好,我叫"+name+",今年18岁了");
    }

    //无参数为返回值
    public static void  say(){
        System.out.println("哈喽,哈哈哈");
    }
}
